From: Florian Müllner Date: Wed, 26 Jun 2013 08:41:04 +0000 (+0200) Subject: layout: Keep the top_window group above newly added chrome X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4009 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9786b2d096baa1f15c885e1cc59bbb32f176d67e;p=gnome-shell.git layout: Keep the top_window group above newly added chrome The top_window_group was introduced for popup windows that should appear above system chrome, but as the group itself is just a child of Main.uiGroup, chrome that is added after top_window_group will still be stacked on top. At least correct the stacking for actors added via addChrome(). https://bugzilla.gnome.org/show_bug.cgi?id=702338 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index 68166ab06..2444a2ab4 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -749,6 +749,8 @@ const LayoutManager = new Lang.Class({ // and shown otherwise) addChrome: function(actor, params) { this.uiGroup.add_actor(actor); + if (this.uiGroup.contains(global.top_window_group)) + this.uiGroup.set_child_below_sibling(actor, global.top_window_group); this._trackActor(actor, params); },